package com.daydayup.test20190630;

import java.util.ArrayList;
import java.util.List;

public class Test {

	/**
	 * 1 1 2 3 4 6 8 12 20
	 */

	public static void main(String[] args) {
		List<Integer> hisNum = new ArrayList<Integer>();
		int mounth = 36;
		int number = 0;
		for (int i = 1; i <= mounth; i++) {
			hisNum.add(number);
			// hisNum[mounth % 3] = number;
			if (i <= 5) {
				switch (i) {
				case 1:
				case 2:
					number = 1;
					break;
				case 3:
					number = 2;
					break;
				case 4:
					number = 3;
					break;
				default:
					number = 0;
				}

			} else {
				number = hisNum.get(i - 3) * 2 + (hisNum.get(i - 1) - hisNum.get(i - 3));
			}
		}
		System.out.println(number);
	}

}
